package liuwanghui.dto.request;

import jakarta.validation.constraints.Positive;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;

@Data
public class ProductUpdateDTO {
    private String name;
    private String category;
    
    @Positive(message = "商品价格必须大于0")
    private BigDecimal price;
    
    private String unit;
    private String imageUrl;
    private String description;
    private LocalDate harvestDate;  // 收获日期
    
    @Positive(message = "库存必须大于0")
    private Integer stock;
}